export default {
  state: {
    orderFollowVisible: false,
    orderDetailFlushTag: false,
    ksOrderDetailVisible: false,
    ksMessageNumber: null,
    orderMessageNumber: null,
    ksOrder: {
      closeTime: null,
      content: null,
      createBy: null,
      createTime: null,
      emergency: null,
      id: null,
      ksId: null,
      ksType: null,
      latestReplyTime: null,
      myCreateTime: null,
      orderId: null,
      remark: null,
      source: null,
      state: null,
      title: null,
      updateBy: null,
      updateTime: null,
      wanJieTime: null,
    }
  },
  mutations: {
    SET_orderFollowVisible: (state) => {
      state.orderFollowVisible = !state.orderFollowVisible;
    },
    SET_ksOrderDetailVisible: (state) => {
      state.ksOrderDetailVisible = !state.ksOrderDetailVisible;
      console.log('state.ksOrderDetailVisible', state.ksOrderDetailVisible);
    },
    SET_ORDER_DETAIL_FLUSH_TAG: (state) => {
      state.orderDetailFlushTag = !state.orderDetailFlushTag;
    },
    SET_orderFollowVisible_FALSE: (state) => {
      state.orderFollowVisible = false;
    },
    SET_ORDER_DETAIL_FLUSH_TAG_FALSE: (state) => {
      state.orderDetailFlushTag = false;
    },
    SET_ORDER_DETAIL_FLUSH_TAG_TRUE: (state) => {
      state.orderDetailFlushTag = true;
    },
    SET_KS_ORDER_ID: (state, data) => {
      state.ksOrder = data;
      console.log('state.ksOrder', state.ksOrder);
    },
    SET_ksMessageNumber: (state, data) => {
      console.log('SET_ksMessageNumber被吃法', data)
      state.ksMessageNumber = data;
    },
    SET_OrderMessageNumber: (state, data) => {
      state.orderMessageNumber = data;
    },
  },
  actions: {
    set_orderFollowVisible() {
      commit('SET_orderFollowVisible');
    },
    set_ksOrderDetailVisible() {
      commit('SET_ksOrderDetailVisible');
    }
  },
}

